package test;

import java.awt.image.ImagingOpException;

public class Cat extends Animal{
    public Cat(String name,String color){
        super(name,color);
    }
    public Cat(){

    }


    public void catchFish(){
        System.out.println("抓鱼");
    }
    public void eat(){
        System.out.println("吃鱼");
    }

    public String toString(){
        return this.getName() + " " + this.getColor();
    }

}
